﻿package Message.Public
{
    import Framework.Serialize.*;

    public class SpriteInfo extends Object
    {
        public var SpriteCode:int;
        public var name:String;
        public var SpriteLevel:int;
        public var AcupointIndex:int;
        public var skillCode:int;
        public var state:Boolean;
        public var changetime:int;
        public var attributes:Array;
        public var combat:int;
        public var spriteEquips:Array;

        public function SpriteInfo()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.SpriteCode);
            param1.writeString(this.name);
            param1.writeInt(this.SpriteLevel);
            param1.writeInt(this.AcupointIndex);
            param1.writeInt(this.skillCode);
            param1.writeBool(this.state);
            param1.writeInt(this.changetime);
            SeqIntHelper.write(param1, this.attributes);
            param1.writeInt(this.combat);
            SeqPlayerItemHelper.write(param1, this.spriteEquips);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.SpriteCode = param1.readInt();
            this.name = param1.readString();
            this.SpriteLevel = param1.readInt();
            this.AcupointIndex = param1.readInt();
            this.skillCode = param1.readInt();
            this.state = param1.readBool();
            this.changetime = param1.readInt();
            this.attributes = SeqIntHelper.read(param1);
            this.combat = param1.readInt();
            this.spriteEquips = SeqPlayerItemHelper.read(param1);
            return;
        }// end function

    }
}
